<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body> <a href="{:U(GROUP_NAME.'/Category/index')}"><h4>栏目列表</h4></a>
<form action="{:U('Admin/Category/run_edit_category',array('p_name'=>$p_name))}" method="post">
    <table class="table table-striped table-hover">
        <tr>
            <th>栏目中文名称</th>
            <th>栏目英文名称</th>
            <th>排序</th>
        </tr>
        <foreach name="data" item="v">
            <tr>
                <td>
                    <input class="form-control text" name="name" value="{$v.name}">
                    <input type="hidden" name="id" value="{$v.id}">
                </td>
                <td>
                    <input class="form-control text" name="en_name" value="{$v.en_name}">
                </td>
                <td>
                    <input  class="form-control text" name="sort" value="{$v.sort}">
                </td>

                </tr>
        </foreach>
        <tr>
            <td colspan="5" align="center">
                <input style="width: 200px"  class="btn btn-primary" type="submit" value="保存">
            </td>
        </tr>
    </table>
</form>
<link href="__PUBLIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="__PUBLIC__/bootstrap/css/button.css" rel="stylesheet">
<script src="__PUBLIC__/bootstrap/js/jquery-1.9.1.js"></script>
<script src="__PUBLIC__/bootstrap/js/bootstrap.js"></script>
</body>
</html>